﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dhtl.Service.IService;
using DataBase.Daihoctuonglai;
using Dhtl_Repositry.Repository;

namespace Dhtl.Service.Service
{
    public class Service_SettingPage : ISettingPage
    {
        public Setting_Page GetFirst()
        {
            using (PageStettingRepository sv = new PageStettingRepository())
            {
                return sv.GetFirst();
            }
        }

        public void AddOrupdate(Setting_Page entity)
        {
            using (PageStettingRepository sv = new PageStettingRepository())
            {
                sv.CreateOrUpdate(entity);
            }
        }
    }
}
